-- element_freeze
-- created by panyl
-- 元素球冰冻

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    record = function(target, prop, path)
        return false;
    end,

    trigger = function(who, prop, target)
        local condition = {
            ["id"] = 407,
            ["value"] = 1,
            ["end_round"] = CombatM.getRound() + tonumber(prop[3]),
        };

        CombatStatusM.applyStatus(target, "frozen", condition);

        return true;
    end
};
